// 联系人
import { POST } from '@/api/http';

const service = 'com.xgggh.srv.msg';
const url = 'messages';
// 联系人列表
export function messages(body) {
  const params = {
    method: 'Message.messages',
    service,
    request: `${JSON.stringify(body)}`,
  };
  return POST(url, params);
}

// 联系人
export function message(body) {
  const params = {
    method: 'Message.message',
    service,
    request: `${JSON.stringify(body)}`,
  };
  return POST(url, params);
}


export function messagesByRead(body) {
  const params = {
    method: 'Message.updateMessage',
    service,
    request: `${JSON.stringify(body)}`,
  };
  return POST(url, params);
}

export default { messages, message };
